﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;


namespace DHQGHN.DAL.Models.DanhMuc
{
    [DataContract]
    public class COUNTRY
    {
        #region Constructors
        public COUNTRY()
        {
            COUNTRY_ID = Common.NullValues.Default_String;
            COUNTRY_CODE2 = Common.NullValues.Default_String;
            COUNTRY_CODE3 = Common.NullValues.Default_String;
            NUMERIC_CODE = Common.NullValues.Default_Int;
            COUNTRY_NAME = Common.NullValues.Default_String;
            NATIONALITY_NAME = Common.NullValues.Default_String;
            DESCRIPTIONS = Common.NullValues.Default_String;
            DELETED = Common.NullValues.Default_Int;
            START_DATE = Common.NullValues.Default_Int;
            END_DATE = Common.NullValues.Default_Int;
            LAST_UPDATED = Common.NullValues.Default_DateTime;
        }
        #endregion

        #region Properties
        [DataMember]
        public string COUNTRY_ID { get; set; } //COUNTRY_ID bigint => 
        [DataMember]
        public string COUNTRY_CODE2 { get; set; } //COUNTRY_CODE2 varchar(2) => 
        [DataMember]
        public string COUNTRY_CODE3 { get; set; } //COUNTRY_CODE3 varchar(3) => 
        [DataMember]
        public Int32 NUMERIC_CODE { get; set; } //NUMERIC_CODE int => 
        [DataMember]
        public string COUNTRY_NAME { get; set; } //COUNTRY_NAME nvarchar(100) => 
        [DataMember]
        public string NATIONALITY_NAME { get; set; } //NATIONALITY_NAME nvarchar(100) => 
        [DataMember]
        public string DESCRIPTIONS { get; set; } //DESCRIPTIONS nvarchar(150) => 
        [DataMember]
        public int DELETED { get; set; } //DELETED smallint => 
        [DataMember]
        public Int32 START_DATE { get; set; } //START_DATE int => 
        [DataMember]
        public Int32 END_DATE { get; set; } //END_DATE int => 
        [DataMember]
        public DateTime LAST_UPDATED { get; set; } //LAST_UPDATED datetime => 
        #endregion
     
        #region Field list from Model
        public const string Field_COUNTRY_ID = "COUNTRY_ID";
        public const string Field_COUNTRY_CODE2 = "COUNTRY_CODE2";
        public const string Field_COUNTRY_CODE3 = "COUNTRY_CODE3";
        public const string Field_NUMERIC_CODE = "NUMERIC_CODE";
        public const string Field_COUNTRY_NAME = "COUNTRY_NAME";
        public const string Field_NATIONALITY_NAME = "NATIONALITY_NAME";
        public const string Field_DESCRIPTIONS = "DESCRIPTIONS";
        public const string Field_DELETED = "DELETED";
        public const string Field_START_DATE = "START_DATE";
        public const string Field_END_DATE = "END_DATE";
        public const string Field_LAST_UPDATED = "LAST_UPDATED";
        #endregion
    }
}
